package com.example.element.module.content_provider.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.element.R
import com.example.element.module.content_provider.bean.ContactBean

class ContactsListAdapter(private val contactsList: MutableList<ContactBean>) : BaseQuickAdapter<ContactBean, BaseViewHolder>(R.layout.item_provider_contacts, contactsList) {

    override fun convert(holder: BaseViewHolder, item: ContactBean) {
        holder.setText(R.id.tv_name, item.name)
        holder.setText(R.id.tv_number, item.number)
    }
}